package demo;

import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * Description: 对文件进行删除操作
 * Author:  LiuTao
 * Version: 1.0
 * Date:    2024-03-26  12:50
 */
public class IODemo3 {
    public static void main(String[] args) throws InterruptedException {
        File file = new File("./aaa");
        file.deleteOnExit();    //程序运行结束后删除
        Thread.sleep(5000);
        //boolean ret = file.delete();    //直接删除
        //System.out.println(ret);

    }
}
